PHY MAKE RIGID BODY DYNAMIC MESH

Create a new dynamic rigid body mesh that is attached to an object.

  Syntax
PHY MAKE RIGID BODY DYNAMIC MESH ID
PHY MAKE RIGID BODY DYNAMIC MESH ID,material
PHY MAKE RIGID BODY DYNAMIC MESH ID, file$
PHY MAKE RIGID BODY DYNAMIC MESH ID, file$, material
  Parameters
ID
Integer
identification number of the 3D object that you want to be represented by a dynamic mesh in the simulation
file$
String
this parameter is optional and when used the data from the object will be saved out to the specified file, this can be useful for some complex objects as the computational time may be long, this file can later be loaded in much faster using the command p
material
Integer
this parameter is optional, a material can be specified if required upon creation of a dynamic rigid body mesh, by specifying a material you can have further control over how the object will react with other objects in regard to properties such as its re

  Returns

  Description

This command will create a representation of the object as a dynamic mesh within the physics simulation. This mesh is not displayed on screen and is used internally for the simulation as a way of representing your object. As the object will be represented by a dynamic rigid body mesh it will be moveable and will be affected by forces such as gravity etc.

The physics simulation will take over control of the object that was attached to the rigid body mesh object. You will not be able to move this object using commands such as position object.

Note that certain styles of meshes will cause problems for this command and may result in this command failing. It is also possible that this command will no longer be supported in the future.

  Example Code
No example code is provided for this command